package design_pattern.decorator.demo02;

/**
 * @version 1.0.0
 * Created by cyd on 2022-06-06 12:40:25
 * @ClassName : design_pattern.decorator.demo02.Client
 * @Description : 类描述
 */
public class Client {
    public static void main(String[] args) {
        ConcretePerson concretePerson = new ConcretePerson("小明");

        FashionClothes fashionClothes = new FashionClothes();
        fashionClothes.setPerson(concretePerson);
        fashionClothes.wear();

        System.out.println("-------------");

        NormalClothes normalClothes = new NormalClothes();
        normalClothes.setPerson(concretePerson);
        normalClothes.wear();
    }
}
